<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'first.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
 <%!
   int i=100;
   static int count =0;
   public String convert(Date d){
   	SimpleDateFormat df=new SimpleDateFormat("yy-MM-dd hh:mm:ss");
    String str=df.format(d);
    return str;	
   }
   %>
  <body>
    <%
    count++;
    out.println(out.getClass().getName()+"<br/>");
     %>
     <p>
     本网页被访问了<%=count%>次
     </p>
    <h1>教育改变华强的生活</h1>
    
   <%--  <%
       out.println(application.getRealPath(""));
    	Date d=new Date();
    	//System.out.println(d);
    	out.print(d);
    	//SimpleDateFormat df=new SimpleDateFormat("yy-MM-dd hh:mm:ss");
    	//String str=df.format(d);
    	String str=convert(d);
     %>
     <h2 style="font-size:40px;color:red">
     	<%=str%>
     </h2> --%>
  </body>
</html>
